All Questions
5 questions
-1votes
1answer
459views
Using a shared enum across 15 nanoservices [closed]
Originally posted here, moved to code review, redirected from code review back here as there is no code to review. I think the question is enough abstract to be asked here. I have a mono repo with ...
3votes
4answers
763views
Do I have LocalDTOs? If yes, what is a good approach to keep encapsulation of the domain model?
LocalDTO term refers to Fowler's article. Say I have a domain entity Person: public class Person { private String id; private String name; private int age; } This entity has its own ...
8votes
1answer
5kviews
Updating nested objects in DDD Aggregate by example: delegation or direct access from the root?
The example domain problem There is a student attendance tracking system that keeps records of student attendances of ExerciseGroups. Course is a top-level component, AR, describes a generic info ...
2votes
1answer
4kviews
Understanding the worker layer in software architecture
I'm new to Java, I've been mostly a scripter. I recently started working at an all Java shop and have been investigating the architecture. I've encountered more than one project with a directory ...
1vote
1answer
841views
Rich Model vs God Class [duplicate]
I have a legacy code containing some behaviour classes, like services and controllers. My model is pretty anaemic. It's just a repository of getters and setters, and I want to refactor it. There is a ...